{assign var='curent_language' value=$data.tree.lng.cur}
<table cellpadding="0" cellspacing="0" width="100%">
	<tr>		
		<td style="color:#666666" width="1"><nobr>{t t='chose_tree_languge'}:</td>
		<td width="5"><img src="client/img/spacer.gif" width="1" height="1" border="0" alt="" /></td>
		<td align="right" width="1">		
		<select name="languages" style="width:70px" onChange="window.location='index.php?{foreach from=$smarty.get item="el" key="key"}{if $key!='lang' && $key!='id'}&{$key}={$el}{/if}{/foreach}&lang='+this.value">
		  {foreach from=$data.tree.lang item="el"}
		  {assign var='cycle_lang' value=$el.name}
		  <option value="{$el.name}" {if $data.tree.lng.cur|lower==$el.name|lower}selected{/if} {if $data.active_langs!='false'}{if !$data.active_langs.$cycle_lang} style="color:#cccccc" {else} style="color:#000" {/if}{/if}>{$el.name}</option>
		  {/foreach}
		</select>		
		</td>
		<td><img src="client/img/spacer.gif" width="1" height="1" border="0" alt="" /></td>
		{if ($data.active_langs!='false') && ($data.admins.cur.mod[1])}
		<td width="1" style="color:#666666"><nobr>{t t='Kalbos būsena'}:</td>
		<td width="5"><img src="client/img/spacer.gif" width="1" height="1" border="0" alt="" /></td>
		<td width="1" style="padding:5px 0px 0px 0px ">		
		<form method="post" enctype="multipart/form-data" name="activateLanguage">
			<input name="admin" type="hidden" value="1">
			<input name="body" type="hidden" value="{$smarty.session.body}">
			<input name="mod" type="hidden" value="lang_on">
			<input name="lang_on" type="hidden" value="">
			<a href="#" onClick="document.forms['activateLanguage'].lang_on.value={if !$data.active_langs.$curent_language}'on'{else}'off'{/if}; document.forms['activateLanguage'].submit(); return false;" target="_self"><img src="_tvs_system_core_/design/img/admin/_status_{if !$data.active_langs.$curent_language}0{else}1{/if}.gif"></a>
			<!-- <input name="lang_on" type="checkbox"> -->
			<!-- <input type="submit" value="OK"> -->
			{*if $data.active_langs.$curent_language}'on'{else}''{/if*}
		</form>
		</td>
		{/if}
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="5"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
	</tr>
</table>